import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class IntegralService {

  constructor(private http: _HttpClient) { }

  queryList(paging: any): Observable<any> {
    // const url = "/microprogram/shopPersonnel?pageStart=1&pageSize=25";
    const url = "/integral/list?pageStart=1&pageSize=25";
    return this.http.get(url); 
  }

  recharge(data: any): Observable<any> {
    // const url = "/microprogram/shopPersonnel?pageStart=1&pageSize=25";
    const url = "/integral/recharge";
    return this.http.post(url, data); 
  }
}
